﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Framework.Commons.FileHelper
{



    public class FileStreamHelper
    {
        /// <summary>
        /// 向文件的末尾添加文本内容
        /// </summary>
        /// <param name="path"></param>
        /// <param name="textContent"></param>
        public static void AppendAllText(string path, string textContent)
        {
            File.AppendAllText(path, textContent);
        }

        /// <summary>
        /// 另起一行在把文本内容追加到后面
        /// </summary>
        /// <param name="path"></param>
        /// <param name="textContent"></param>
        public static void AppendAllLineText(string path, string textContent)
        {
            File.AppendAllText(path, $" \t\n{ textContent }");
        }
    }





}
